package com.rykj.energy.common.utils;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

/**
 * @author GanLu
 * @date 2020-04-22 16:29
 */
public interface Tree<T> {

    @JSONField(serialize=false)
    Integer getTreeId();

    @JSONField(serialize=false)
    Integer getTreePid();

    @JSONField(serialize=false)
    List<T> getTreeChildren();

    @JSONField(serialize=false)
    void setTreeChildren(List<T> children);

}
